package com.example.victory.mapper;

import com.example.victory.swagger.model.CrmOrg;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrgMapper {
    /**
     * 获取所有组织
     *
     * @return 组织队列
     */
    @Select("select id,fid,orgcode,name,grade as orgtype from CRMII.LBORGANIZATION")
    List<CrmOrg> getAll();
}
